<div class="contents_left w152 OverH">
<php>
	$module = (MODULE_NAME)?MODULE_NAME:'home';
	$action = (ACTION_NAME)?ACTION_NAME:'index';
	$menu_list = array(	
		L('nav_myhomepage') => array(
			''=>'User_index',
			L('nav_myhomepage')       => 'User_index',
			L('nav_info_index')       => 'Info_index',
			L('nav_message_index')    => 'Message_index',		
			L('nav_accountset')       => 'Info_accountset',
		),
        
		L('nav_myrecord') => array(
			L('nav_myrecord')            =>  'Record_index',
			L('nav_colleague_record')    =>  'Record_attention',
			L('nav_other_record')        =>  'Record_all',
		),
		
		L('nav_myblog') => array(
		  	L('nav_myblog')           =>   'Blog_blogList',
		  	L('nav_addblog')          =>   'Blog_post',    
		), 	
        			
		L('nav_myask')  => array(
			L('nav_myquestion')     => 'Ask_myAsk',
			L('nav_myanswer')       => 'Ask_myAnswer',		
			L('nav_askwithme')  => 'Ask_myHelp',
		),	
		
		L('nav_myforum') => array(
			L('nav_mythread')     => 'Bbs_post',
			L('nav_myreply')     => 'Bbs_reply',		
		),			

		L('nav_mygroup') => array(
			L('nav_myadmin_group')     => 'Group_manage',
			L('nav_myjoin_group')      => 'Group_join',
		),
		
		L('nav_mywiki') => array(
			L('nav_mywiki_create') => 'Wiki_create',
			L('nav_mywiki_edit') => 'Wiki_edit'
		),					
			
		L('nav_mycolleague') => array(		
			L('nav_mycolleague_list')     => 'Colleague_index',
			L('nav_mycolleague_import')     => 'Colleague_add',		
			L('nav_mycolleague_search')     => 'Colleague_search',
			L('nav_mycolleague_track')     => 'Colleague_track',
            L('nav_mycolleague_followyou')   => 'Colleague_followYou',
            L('nav_mycolleague_followMe')    => 'Colleague_followMe',	
		),
                					
		L('nav_mysubscribe') => array(		
			L('nav_mysubscribe_ask')     => 'Follow_sort',
			L('nav_mysubscribe_bbs')     => 'Follow_bbs'
		),
		
		L('nav_myshare') => array(		
			L('nav_myshare_list')     => 'Share_collect',
			L('nav_myshare')         => 'Share_my',
            L('nav_myshare_other')   => 'Share_all'                    
		),

	);
	
</php>	
  <div class="pic_face" style="padding:2px"><a href="__APP__&mod=Info&type=userface" title="修改头像"><img src="{$mid|getUserFace}" width="120" /></a>
  <php>if(isExpert($uid)){</php><span class="pro_pic">&nbsp;</span><php>}</php>
  </div>
  <div class="sidebar_nav">  
    <ul rel="menulist">
	<php>foreach($menu_list as $key=>$val){</php>
	<php>$class = (in_array($module.'_'.$action,array_values($val)) || $module.'_'.$action==$val)?'on':'off';$ii=1;</php>
		 <li class="{$class}" rel="lists">
	        <dl>
			  <php>if(is_array($val)){</php>
	         	 <dt onclick="change(this);"><a href="javascript:void(0)">{$key}</a></dt>
			  	  <php>$counts = count($val)</php>			  
			  	  <php>foreach($val as $k=>$v){</php>
				  <php>$ks = explode('_',$v);$btm = ($counts==$ii)?'btm':'';$btmt = ($v==$module.'_'.$action)?'fB':''</php>
				  		<dd class="{$btm} {$btmt}"><a href="{:U('home/'.$ks[0].'/'.$ks[1],'uid='.$mid)}">{$k}</a></dd>
				  <php>$ii++;}</php>
			  <php>}else{</php>
			  	   <php>$ks = explode('_',$val);</php>
			       <dt><a href="{:U('home/'.$ks[0].'/'.$ks[1],'uid='.$mid)}">{$key}</a></dt>
			  <php>}</php>
			</dl>
		</li>
	<php>}</php>
	</ul>
  </div>
</div>
<script>
function change(o){
   	$("ul[rel='menulist'] li[class='on']").attr('class','off');

	if($(o).parents("li[rel='lists']").attr('class')=='off'){
	 	$(o).parents("li[rel='lists']").attr('class','on');
	}else{
		$(o).parents("li[rel='lists']").attr('class','off');
	}
}
</script>


